<#assign thisEntity="${entity?uncap_first}"/>
<#assign thisName="${table.comment!}"/>
<#if keyPropertyName??>
    <#assign thisEntityId="${keyPropertyName?cap_first}"/>
<#else>
    <#assign keyPropertyName="id"/>
    <#assign thisEntityId="Id"/>
</#if>

INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:detail', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/getDetail/{${keyPropertyName}}','${thisName}-查看详情');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:list', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/getList','${thisName}-查看列表');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:list', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/getListPage','${thisName}-查看列表分页');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:create', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/create','${thisName}-添加');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:update', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/update','${thisName}-更新');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:delete', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/delete/{${keyPropertyName}}','${thisName}-删除');
INSERT INTO `project_db`.`system_authority` (`authority_key`, `authority_path`, `menu_name`) VALUES (<#if package.ModuleName?? && package.ModuleName != "">${package.ModuleName}:</#if><#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>:delete', '<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>/deleteByIdList/{${keyPropertyName}List}','${thisName}-根据ID批量删除');
